package model

const ()

var ()

type TranInfo struct {
	Action  string
	Encrypt bool
	Data    []byte
	Sign    []byte
	ReqNum  []byte
}

func (a *TranInfo) GetByte() ([]byte, error) {
	return Encode(&a)
}

func (a *TranInfo) GetData(data []byte) (*TranInfo, error) {
	err := Decode(data, &a)
	return a, err
}
